<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<%@ include file="/pages/jsp/internal/include.jsp" %>


<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
	<title>AmminiStoria 0.1 beta - Web Site Controller</title>

	<script type="text/javascript" src="<c:url value="/js/jquery/js/jquery-1.7.js"/>"></script>
	<script type="text/javascript" src="<c:url value="/js/jquery/js/jquery.ui.core.js"/>"></script>
	<script type="text/javascript" src="<c:url value="/js/jquery/js/jquery.ui.widget.js"/>"></script>
	<script type="text/javascript" src="<c:url value="/js/jquery/js/jquery.ui.datepicker.js"/>"></script>
	<script type="text/javascript" src="<c:url value="/ckeditor/ckeditor.js"/>"></script>
	<script type="text/javascript" src="<c:url value="/js/table/jquery.tablesorter.js"/>"></script>
	
	<script type="text/javascript" src="<c:url value="/js/main.js"/>"></script>
	
	<link type="text/css" rel="stylesheet" href="<c:url value="/js/table/style.css"/>" />
	<link type="text/css" rel="stylesheet" href="<c:url value="/css/demos.css"/>" />
	<link type="text/css" rel="stylesheet" href="<c:url value="/css/jquery.ui.all.css"/>" />
	<link type="text/css" rel="stylesheet" href="<c:url value="/js/jquery/css/ui-lightness/jquery-ui-1.8.17.custom.css"/>" />

	<link type="text/css" rel="stylesheet" href="<c:url value="/css/reset.css"/>" />
	<link type="text/css" rel="stylesheet" href="<c:url value="/css/style_admin.css"/>" />
	
	<style>
    	#error { color: red; }
    	#message{color:blue;}
  	</style>  
	
</head>
<body>

<div id="login">

<h2><fmt:message key="label.login"/></h2>

<span class="note">
	
	<c:forEach items="${model.messages}" var="message">
	   	<div id="message"><fmt:message key="${message}"/></div>
	</c:forEach>
	
	<c:forEach items="${model.errors}" var="error">
	   	<div id="error">
	   		<fmt:message key="${error.key}">
	   			<fmt:param value="${error.param1}"/>
	   		</fmt:message>
	   	</div>
	</c:forEach>
</span>

<form id="loginForm" method="post" action="<c:url value="/login/login.htm"/>">

	<table  class="tableForm" cellspacing="0" cellpadding="0" summary="0">
	   	<tr>
	    	<td align="right" width="20%"><fmt:message key="${label.userNew2}"/></td>
	     	<td width="20%"><input type="text" name="mail" value=""/></td>
	  	</tr>
   
	   <tr>
	     	<td align="right" width="20%"><fmt:message key="${label.password}"/></td>
	     	<td width="20%"><input type="password" name="pwd" value=""/></td>
	   </tr>
  
 	</table>
 	<br>
 										         
 	<input type="button"  value="Login" onclick="sendFormForAction('<c:url value="/login/login.htm"/>','loginForm','login','insert');">
 	
</form>
</div>
</body>
</html>